import request from '@/utils/request'

// 查询地理位置信息列表
export function listLocations(query) {
  return request({
    url: '/dash/locations/list',
    method: 'get',
    params: query
  })
}

// 查询地理位置信息详细
export function getLocations(id) {
  return request({
    url: '/dash/locations/' + id,
    method: 'get'
  })
}

// 新增地理位置信息
export function addLocations(data) {
  return request({
    url: '/dash/locations',
    method: 'post',
    data: data
  })
}

// 修改地理位置信息
export function updateLocations(data) {
  return request({
    url: '/dash/locations',
    method: 'put',
    data: data
  })
}

// 删除地理位置信息
export function delLocations(id) {
  return request({
    url: '/dash/locations/' + id,
    method: 'delete'
  })
}
